package model

type OrderAddress struct {
	OrderId       uint   `json:"orderId" gorm:"type:bigint;primary_key;not null;"`
	UserName      string `json:"userName" gorm:"type:varchar(30);not null"`
	UserPhone     string `json:"userPhone" gorm:"type:varchar(11);not null"`
	ProvinceName  string `json:"provinceName" gorm:"type:varchar(32);not null"`
	CityName      string `json:"cityName" gorm:"type:varchar(32);not null"`
	RegionName    string `json:"regionName" gorm:"type:varchar(32);not null"`
	DetailAddress string `json:"detailAddress" gorm:"type:varchar(64);not null"`
}

// TableName 自定义表明，不适用默认的mall_users
func (receiver OrderAddress) TableName() string {
	return "tb_newbee_mall_order_address"
}
